import { UploadStatus } from "../enumType";

interface BaseModal {
    type: string;
}

interface PermissionDetail {
    checkBoxType: string;
    description: string;
    name: string;
    value: number;
}

interface PermissionList {
    manage: PermissionDetail;
    read: PermissionDetail;
    write: PermissionDetail;
}

interface Permission {
    hasReadPer: boolean;
    isOwner: boolean;
    hasManagePer: boolean;
    _permissionList: PermissionList;
    value: number;
    hasWritePer: boolean;
}

interface StatusConfig  {
    status: UploadStatus;
    bgColor: string;
    text: string;
}

export type {
    BaseModal,
    PermissionDetail,
    PermissionList,
    Permission,
    StatusConfig,
};